AssetWise CONNECT Edition Implementation Guide

To Edit Repository Values

The list of exposed repositories in the web.config configuration file, differs based on the repositories that have been exposed via the WSG endpoint. By default, if more than one repository exists, a dropdown list appears, otherwise if only one repository exists, the repository option is not visible. It is possible to only allow one repository to be listed, likewise, it is possible to display the name of the repository, when only one repository exists.

This topic describes how to change the default behavior.

  1. Using a text editor, open config.json located in the app\config\layouts\override\ folder of the web server, and locate the following section:
    "wsg": {
            "baseUrl": "[http or https]://[domain or machine]/wsg/v2.6/",
            "repository": " eBPluginId--it-devdb-02~2CARS_LOCAL_ORACLE",
  2. Edit the baseUrl such that [http or https] reflects your service provider, and [domain or machine] is your server's WSG URL, which is defined by the installer.
  3. By default, the repository values are determined from the baseUrL, however if you want to lock down the website to only use one repository, then set the value to the instance ID, as determined from WSG. eBECPLugin queries a list of known repositories for the "domains" configuration key that you set up in ecom.config.
    Note: If you are using Internet Explorer, the results must be saved to the local machine and viewed with a text or json editor. For all other browsers, the json response is returned inside the browser window.
  4. To find the instanceId, search for the Location property that contains your AssetWise server and repository name. For example, in the following WSG respository call response,
    {
      instanceId: "eBPluginId--it-devdb-02~2CARS_LOCAL_ORACLE",
      className: "RepositoryIdentifier",
      schemaName: "Repositories",
      properties: {
      ECPluginID: "eBPluginId",
      Location: "it-devdb-02,ARS_LOCAL_ORACLE",
      DisplayLabel: "ARS_LOCAL_ORACLE",
      Description: "ARS_LOCAL_ORACLE",
      ImageMoniker: ""
      }
    }
    "it-devdb-02,ARS_LOCAL_ORACLE, it-devdb-02" is the AssetWise server name, and ARS_LOCAL_ORACLE is the AssetWise repository that contains ALIM. The value for instanceId "eBPluginId--it-devdb-02~2CARS_LOCAL_ORACLE" is inserted into the repository value.
  5. In config.json, update the repository value to match the instanceID value found in the response. For example,
    "wsg": {
          "//": "This is the WSG end point URL",
          "baseUrl": "[http or https]://localhost/wsg/v2.6/",
    
          "//": "Repository can be left blank to pull from WSG or can be set to one specific repository to lock the site to only connect to it.",
          "repository": " eBPluginId--it-devdb-02~2CARS_LOCAL_ORACLE",